package com.dingup.mock.dao.exam;

import com.dingup.mock.bean.exam.TsMockReport;
import org.apache.ibatis.annotations.Mapper;

import java.util.HashMap;
import java.util.List;

/**
 * Created by liuhaoyu on 16/7/15.
 */
@Mapper
public interface TsMockReportsMapper {
    Boolean add(TsMockReport tsMockReport);

    Boolean update(TsMockReport tsMockReport);

    TsMockReport getByExamId(String examId);

    Boolean existByExamId(String examId);

    Boolean delete(Integer id);

    /**
     * User: jun
     * Date: 2017/12/20
     * Desc: 获取学生的托福全套作业模考记录, 用于计算学期报告
     * key studentId, classId;
     */
    List<TsMockReport> getList4TermReport(HashMap<String, Object> param);

    /**
     * 通过班级获取模考记录
     *
     * @param classId 班级id
     * @return 班级模考报告集
     */
    List<TsMockReport> getByClassId(Integer classId);
}
